//导入express的模块
const express = require('express')

const app = express()

// 导入自定义路由模块
const router = require('./3.express_router')


// 注册路由模块
 app.use(router)
//app.use('/api', router)

app.listen(80, function (req, res) {
    console.log('server runing at http://127.0.0.1')
})